Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Rotate-About-Axis Transforms

Labels

ASCII
RotateAboutAxis
Binary
rtaa ( = 0x72746161 )

Data Format

Point3D             origin
Vector3D            orientation
Float32             radians
origin
The origin of the axis of rotation.
orientation
The orientation of the axis of rotation. This vector should be normalized.
radians
The number of radians by which an affected object is rotated.

Data Size

28

Description

A rotate-about-axis transform rotates an object about an arbitrary axis in space by a specified number of radians. The value in the origin field and the orientation vector are used to define the axis of rotation.

Parent Hierarchy

Shared, shape, transform.

Parent Objects

None.

Child Objects

None.

Example

RotateAboutAxis (
    20 0 0                  # origin
    .33 .33 .34             # orientation
    1.57                    # radians
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |